-
Notifications
You must be signed in to change notification settings - Fork 26
Set JDK to 1.8 #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set JDK to 1.8 #146
Conversation
@retronym Do you by any chance know what the reason behind the JDK 11 requirement is? At least |
#120 says something about logback? is that plausible? cc @Philippus |
Anything against downgrading Logback to the latest one that supports 1.8? iirc That version of logback does work with newer versions assuming you just do standard logging. |
No objection here, but that's just my ignorance on the subject talking. I'll try to rope in Jason. |
I'm happy to widen support to JDK 8 |
@mdedetrich okay, happy to merge a logback downgrade if you add one here. would you mind also adding a Scala Steward exemption so we don't accidentally re-upgrade it? it would be nice to have some kind of smoke test for logging that would fail on JDK 8 without the upgrade, but I don't insist that you improve the status quo, there |
I'll get onto this, will also do a smoke test |
as a footnote, I would like to structure my utility to run on whichever JDK with whichever required dependencies. This came up with REPL and jline dropping JDK8. In the Age of Scala-CLI, this ought to be a non-issue. (Dropping JDK8 is not a simplification, because currently, one might want to support JDK11, 17, 21.) |
90ae75e
to
c180143
Compare
c180143
to
661f860
Compare
@SethTisue @retronym I have done everything that you have asked for. There were actually 2 dependencies I had to downgrade (logback/jgit) and a smoke test was added for both and I can confirm that this works locally by switching out JDK's. Scala steward ignore rules were also added. Interestingly even though logback/slf4j is added as a dependency the project doesn't seem to do any actual logging (there may however be some indirect logging from transitive dependencies going on). |
thank you @mdedetrich !
@retronym curious if you remember anything about that. slf4j is already there even in your initial commit. |
The intention of this PR is to test if this project can compile with JDK 8. The reasons for this are
At least with Pekko where we use this project to validate releases (i.e. we check if there is a bytecode difference between staging and locally built artifacts) and since Pekko is built with JDK 1.8 we constantly have to switch JDK's when testing with jardiff
Given Add jardiff-sbt #52 it makes sense to target JDK 1.8 since almost all sbt plugins target 1.8 (given that its built with Scala 2.12).